#!/bin/bash
cp Squota /usr/local/bin/Squota ; chmod u=rwx,g=x,o=x /usr/local/bin/Squota
cp Squotaday /usr/local/bin/Squotaday ; chmod u=rwx,g=x,o=x /usr/local/bin/Squotaday
cp Squotack /usr/local/bin/Squotack ; chmod u=rwx,g=sx,o=sx /usr/local/bin/Squotack
cp quotavars /var/adm/Squota/quotavars ; chmod 600 /var/adm/Squota/quotavars
echo "23 50 \* \* \* /usr/local/bin/Squota" >>/usr/spool/cron/crontabs/root
echo "23 55 \* \* \* /usr/local/bin/Squotaday" >>/usr/spool/cron/crontabs/root

